package com.dongjiantong.openplatform.utils;/**
 * Created by cao on 2017/12/14.
 */

import com.dongjiantong.openplatform.entity.OpClient;

/**
 * @author cao
 * @create 2017-12-14 上午9:26
 **/
public class ClientUtil {
    private static ThreadLocal<OpClient> opClientTL = new ThreadLocal();

    public ClientUtil() {
    }

    public static void put(OpClient opClient) {
        opClientTL.set(opClient);
    }

    public static OpClient get() {
        return (OpClient)opClientTL.get();
    }

    public static void clear() {
        opClientTL.remove();
    }
}
